﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http.Controllers;

namespace ApIAuthTest.Filter
{
    public class CustomAuthenticationFilterAttribute:BasicAuthenticationFilterAttribute
    {
        public override bool OnAuthorize(string username, string password, HttpActionContext actionContext)
        {
            if (username == "test" && password == "test")
            {
                return true;
            }
            return false;
        }
    }
}